<!--
 * @FileDescription 选项
 * @Author 杨宇翔
 * @Date 20220706 10:28:40
 * @LastEditors 杨宇翔
 * @LastEditTime 20220706 10:28:40
-->
<template>
    <div class="options">
        <!-- <template v-for="[name, icon] of UseComponent.Default.Options" :key="name"> -->
            <!-- <input type="radio" hidden :id="name" :value="name" v-model="UseComponent.Default.Choice.value">
            <label :for="name">
                <img :src="UseComponent.Default.Choice.value == name ? `/static/Lidar/${icon}_select.png` : `/static/Lidar/${icon}_normal.png`">
                <span>{{ name }}</span>
            </label> -->
        <!-- </template> -->
        <template v-for="option of UseComponent.Default.Options.value" :key="option">
            <input type="radio" :value="option" :id="option" v-model="UseComponent.Default.Choice.value" hidden>
            <label :for="option">
                <img :src="UseComponent.Default.Choice.value == option ? `/static/Lidar/ic_${option}_select.png` : `/static/Lidar/ic_${option}_normal.png`">
                <span>{{ option }}</span>
            </label>
        </template>
    </div>
</template>

<script setup lang="ts">
import { UseComponent } from './LidarComponent';
</script>

<style scoped>
.options {
    position: absolute;
    right: 6rem;
    bottom: 2rem;

    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    gap: 4rem;
}

label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

label>span {
    color: #81859C;
    font-size: 1.6rem;
    font-weight: 500;
}
</style>./LidarComponent